package com.yznmall.mall.util;

public class PathUtil {
    private static String seperator = System.getProperty("file.separator");
    public static String getImgBasePath(){

        String os = System.getProperty("os.name");
        String basePath = "";
        if(os.toLowerCase().startsWith("Win")){
            basePath = "D:/project/image/";
        }else{
            basePath = "/home/yzn/image";
        }
        basePath = basePath.replace("/",seperator);
        return basePath;
    }
    public static String getShopImagePath(long shopId){
        String imagePath = "upload/item/shop/"+shopId+"/";
        return imagePath.replace("/",seperator);
    }
}
